<?php
namespace Common\Model;

class BikeModel extends CommonModel{

	protected $_link = array(
			'order'=>array(
				'mapping_type'      => self::BELONGS_TO,
				'class_name'        => 'Order',
				'foreign_key'        => 'order_id',
				'mapping_fields'        => 'order_sn,goods_id,order_num,goods_name,goods_pic,goods_price,goods_profile,goods_spec,order_price,service',
				'as_fields'        => 'order_sn,goods_id,order_num,goods_name,goods_pic,goods_price,goods_profile,goods_spec,order_price,service',
			),
			'repair'=>array(
				'mapping_type'      => self::HAS_MANY,
				'class_name'        => 'Repair',
			),
	);
}